package com.haobangs.imms.controller;


import com.haobangs.imms.service.IShakeService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 *  震动传感器数据获取Controller
 *
 * @author haobangs
 * @date 2024-03-30
 */
@RestController
@RequestMapping("/imms/shake")
public class ShakeContoller extends BaseController
{
    @Autowired
    private IShakeService ShakeService;
    /**
     * 震动传感器状态
     */
    @GetMapping("/get")
    public AjaxResult getstauts() {
        return (AjaxResult.success(ShakeService.getshakestatus())) ;

    }


}
